@extends('admin.layout.layout')
@section('title')
<title>北京仁爱慈善后台</title>
@endsection
@section('con')
<title>北京市仁爱慈善后台</title>
@endsection
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">图片添加</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                添加
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">
                    <div class="col-lg-8 col-lg-offset-2">
                        <form role="form" action="{{url('/admin/tab/picinsert')}}" method="post" enctype="multipart/form-data">
                            <div class="form-group">
                                <label>所属分类</label>
                                <select name="pid" class="form-control">
                                    @foreach ($data as $k=>$v)
                                    <option value="{{$v->id}}">{{$v->title}}</option>
                                    @endforeach
                                    </select>
                            </div>
                            <div class="form-group">
                                <label>图片标题</label>
                                <input type="text" name="title" class="form-control" value="">
                            </div>
                            <!-- <div class="form-group">
                                <label>网络连接地址</label>
                                <input type="text" name="link" class="form-control" value="">
                            </div> -->
                            <div class="form-group">
                                <label>图片</label>
                                <input type="file" name="logo">
                            </div>
                            {{csrf_field()}}
                            <button class="btn btn-primary" type="submit">添加</button>
                            <button class="btn btn-danger" type="reset">重置</button>
                        </form>
                    </div>
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
@endsection
